package com.hmall.mapper;

import com.hmall.model.SysUserDept;
import com.hmall.util.MyMapper;
import com.hmall.vo.SysDeptVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserDeptMapper extends MyMapper<SysUserDept> {

    Integer selectDeptIdByUserId(@Param("userId") Integer userId);

    SysDeptVo selectDeptByUserId(@Param("userId") Integer userId);

    void deleteByUserId(@Param("userId") Integer userId);

    Integer selectDealerIdByUserId(@Param("userId") Integer userId);

    List<Integer> selectByDeptId(@Param("deptId") int deptId);

    List<Integer> selectUserIdListByCustomerId(Integer customerId);

    SysUserDept selectbyUserId(@Param("userId") Integer userId);
}